import {
  TEXT,
  SELECT,
  PASSWORD,
  TEXTAREA,
  RADIO,
  DATE_PICKER,
} from '@/conf/uiTypes'

export default {
  title: '页面标题',
  items: [
    [
      {
        label: '姓名',
        key: 'username',
        colspan: 6,
        type: TEXT,
        attrs: { placeholder: '请输入姓名' },
      },
      { label: '出生日期', key: 'date1', colspan: 6, type: DATE_PICKER },
      { label: '测试', key: 'test3', colspan: 6, type: RADIO },
      {
        label: '性别',
        key: 'gender',
        colspan: 6,
        type: SELECT,
        value: 0,
        options: [
          { label: '男', value: 0 },
          { label: '女', value: 1 },
        ],
      },
    ],
    [
      { label: '身份证', key: 'id', colspan: 8, type: TEXT, value: '123' },
      {
        label: 'test',
        key: 'username',
        colspan: 8,
        type: PASSWORD,
        attrs: { placeholder: '测试' },
      },
      {
        label: 'test2',
        key: 'remark',
        colspan: 8,
        type: TEXTAREA,
        attrs: { placeholder: '多行文本' },
      },
    ],
    [
      {
        label: '婚姻状态',
        key: 'marry',
        colspan: 24,
        type: SELECT,
        value: 1,
        options: [
          { label: '已婚', value: 0 },
          { label: '未婚', value: 1 },
        ],
      },
    ],
  ],
  rules: {},
}
